/**
 * 是否移动端
 */
export var isMobile = !!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);

/**
 * 是否浙里办
 */
export var isZlb = !!navigator.userAgent.toLocaleLowerCase().match('dtdreamweb');

/**
 * 是否支付宝
 */
export var isAlipay = !!navigator.userAgent.toLocaleLowerCase().match('aliapp');

/**
 * 是否浙里办或支付宝
 */
export var isZlbOrAlipay = isZlb || isAlipay;

/**
 * 是否在微信中
 */
export var isWechat = !!navigator.userAgent.toLocaleLowerCase().match('micromessenger');

/**
 * 是否浙政钉
 * 2023.07.25 记录
 * Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 dingtalk-win/1.0.0 nw(0.14.7) DingTalk(2.13.2-Release.27) TaurusApp(tauruszjd/2.13.2.27) Mojo/1.0.0 Native AppType(release) TaurusLanguage/zh_CN
 */
export var isZzd = window.navigator.userAgent.toLowerCase().indexOf('dingtalk') !== -1 ||
// 聊天记录点击访问
window.navigator.userAgent.toLowerCase().indexOf('mpaasclient') !== -1;